package four;

class TV {
    private int channel;

    public void setChannel(int channel) {
        this.channel = channel;
    }

    public int getChannel() {
        return this.channel;
    }

    public void showProgram() {
        String[] programs = {"体育频道", "经济频道"};
        System.out.println(programs[(this.channel - 1) % 2]);
    }
}
